package com.h52mm.zkclient;

import org.I0Itec.zkclient.ZkClient;

public class DelDataSample {
    public static void main(String[] args) {
        ZkClient zkClient=new ZkClient("127.0.0.1:2181");
        System.out.println("ZooKeeper session established");
        //删除
        zkClient.deleteRecursive("/zkclient/test_parents");
        System.out.println("success delete znode");
    }
}
